package org.brisling.oa.domain;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.brisling.base.domain.impl.BaseFlowDomain;
import org.brisling.base.domain.inf.BaseFlowDomainInf;
import org.brisling.common.ConstSysParam;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 
 * <p>Title: OADomain</p>
 * <p>Description: 通用oa实体类</p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2017年7月20日 上午10:59:46
 */


//定义实体annotation
@Entity


//定义模块代码及数据表名称
@Table(name=ConstSysParam.MODULE_OA_SERVICE)

public class OADomain extends BaseFlowDomain implements BaseFlowDomainInf{

	
	
	/*
	 * 申请人员id
	 */
	private Long apply_id;
	
	/*
	 * 申请人员姓名
	 */
	@Column(length=30)
	private String apply_name;
	
	/*
	 * 申请科室id
	 */
	private Long apply_deptid;
	
	/*
	 * 申请科室名称
	 */
	@Column(length=50)
	private String apply_deptName;
	
	/*
	 * 申请时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date apply_date;
	
	
	//事项名称(父类继承)	 
	//private String name;
	
	/*
	 * 事项内容
	 */
	private String apply_content;
	
	/*
	 * 扩展数据
	 */
	@Column(length=4000)
	private String formData;

	/**
	 * 获取申请人员id
	 * @return the apply_id
	 */
	public Long getApply_id() {
		return apply_id;
	}

	/**
	 * 设置申请人员id
	 * @param apply_id the apply_id to set
	 */
	public void setApply_id(Long apply_id) {
		this.apply_id = apply_id;
	}

	/**
	 * 获取申请人员 姓名
	 * @return the apply_name
	 */
	public String getApply_name() {
		return apply_name;
	}

	/**
	 * 设置申请人员姓名
	 * @param apply_name the apply_name to set
	 */
	public void setApply_name(String apply_name) {
		this.apply_name = apply_name;
	}

	/**
	 * 获取申请科室id
	 * @return the apply_deptid
	 */
	public Long getApply_deptid() {
		return apply_deptid;
	}

	/**
	 * 设置申请科室id
	 * @param apply_deptid the apply_deptid to set
	 */
	public void setApply_deptid(Long apply_deptid) {
		this.apply_deptid = apply_deptid;
	}

	/**
	 * 获取申请科室名称
	 * @return the apply_deptName
	 */
	public String getApply_deptName() {
		return apply_deptName;
	}

	/**
	 * 设置申请科室名称
	 * @param apply_deptName the apply_deptName to set
	 */
	public void setApply_deptName(String apply_deptName) {
		this.apply_deptName = apply_deptName;
	}

	/**
	 * 获取申请时间
	 * @return the apply_date
	 */
	public Date getApply_date() {
		return apply_date;
	}

	/**
	 * 设置申请时间
	 * @param apply_date the apply_date to set
	 */
	public void setApply_date(Date apply_date) {
		this.apply_date = apply_date;
	}

	/**
	 * 获取申请内容
	 * @return the apply_content
	 */
	public String getApply_content() {
		return apply_content;
	}

	/**
	 * 设置申请内容
	 * @param apply_content the apply_content to set
	 */
	public void setApply_content(String apply_content) {
		this.apply_content = apply_content;
	}

	/**
	 * 获取扩展数据
	 * @return the jsonData
	 */
	public String getFormData() {
		return formData;
	}

	/**
	 * 设置扩展数据
	 * @param jsonData the jsonData to set
	 */
	public void setFormData(String formData) {
		this.formData = formData;
	}

	
	
	
	
}